<script setup>
import { inject } from 'vue'

const sonNum = inject('toSon', 999)
</script>

<template>
  <div class="son-page">我是后代组件---{{ sonNum }}</div>
</template>

<style lang="scss" scoped></style>
